# -*- coding: utf-8 -*-
# @Author : HaleShi
# @Time : 2023-06-15
# @File : 3_register_device_v1.py

import requests
import uuid

device_token = str(uuid.uuid4())
param_dict = {
    "app_name": "achievo_ad",
    "app_version": "7.83.3",
    "device_token": device_token,
    "status": "1",
    "warehouse": "null",
    "manufacturer": "Google",
    "device": "Pixel+2+XL",
    "os_version": "29",
    "channel": "oziq7dxw%3A%3A%3A",
    "vipruid": "",
    "regPlat": "0",
    "regid": "null",
    "rom": "Dalvik%2F2.1.0+%28Linux%3B+U%3B+Android+10%3B+Pixel+2+XL+Build%2FQQ3A.200805.001%29",
}

res = requests.get(
    url="https://mp.appvipshop.com/apns/device_reg",
    params=param_dict
)
print(res.text)
